package com.xce.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName WeatherFeignClient
 * @Description TODO
 * @Author lld
 * @Date 2025/6/29 21:24
 * @Version 1.0
 */
@FeignClient(value = "weather-client", url = "https://restapi.amap.com")
public interface WeatherFeignClient {

    @GetMapping("/v3/weather/weatherInfo")
    String getWeatherInfo(@RequestParam("key") String key, @RequestParam("city") String city);

    @GetMapping("/v3/ip")
    String getIp(@RequestParam("key") String key);


}
